#include<iostream>
#include <cstring>
using namespace std;
class Complex{
	float Real,Image;
	public:
		Complex(float x=0,float y=0){
			Real=x;
			Image=y;
		}
		friend Complex operator+(Complex&,Complex&);
		friend Complex operator-(Complex&,Complex&);
		friend Complex operator*(Complex&,Complex&); 
		void show(){
			cout<<"Real="<<Real<<" Image="<<Image<<endl; 
		}
}; 
Complex operator+(Complex &c1,Complex &c2){
	Complex temp;
	temp.Real = c1.Real + c2.Real;
	temp.Image = c1.Image + c2.Image;
	return temp;
}
Complex operator-(Complex &c1,Complex &c2){
	Complex temp;
	temp.Real = c1.Real - c2.Real;
	temp.Image = c1.Image - c2.Image;
	return temp;
}
Complex operator*(Complex &c1,Complex &c2){
	Complex temp;
	temp.Real = c1.Real*c2.Real - c1.Image*c2.Image;
	temp.Image = c1.Image*c2.Real+ c1.Real*c2.Image;
	return temp;
}

int main(){
	float real, image;
	cin>>real>>image;
	Complex c1(real,image);
	cin>>real>>image;
	Complex c2(real,image);
	Complex c3;
	c3=c1+c2;
	c3.show();
	c3=c1-c2;
	c3.show();
	c3=c1*c2;
	c3.show();
}